<h1>Listing user_people</h1>

<table>
  <tr>
    <th>User</th>
    <th>Person</th>
  </tr>

<% @user_people.each do |user_person| %>
  <tr>
    <td><%=h user_person.user %></td>
    <td><%=h user_person.person %></td>
    <td><%= link_to 'Show', user_person %></td>
    <td><%= link_to 'Edit', edit_user_person_path(user_person) %></td>
    <td><%= link_to 'Destroy', user_person, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user_person', new_user_person_path %>